// encoding utf-8
#ifndef __QyRenderAnimation__
#define __QyRenderAnimation__

#include <QyGLObject.h>

namespace QyRender {

class Animation {
public:
    virtual ~Animation() {}

    QList<QyGL::Texture*> textures() const { return p_textures; }
    quint32 currentFrame() const { return p_currentFrame; }
    QyGL::Texture * currentTexture() const;

    void setTextures( QList<QyGL::Texture*> textures ) { p_textures = textures; p_currentFrame = 0; }
    void setCurrentFrame( quint32 currentFrame );

private:
    QList<QyGL::Texture*> p_textures;
    quint32 p_currentFrame;

};

};

#endif//__QyRenderAnimation__
